x86/nmi: Corrections and improvements to do_nmi_stats()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 13 Feb 2020 14:06:50 +0000 (14:06 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 20 Feb 2020 18:24:48 +0000 (18:24 +0000)
commitb305fca9a7b3d6cd8673c31be8aa8283ed50ecae
tree376ed1680ef6b90b178908b4997544508ab18e55
parent691265f96097d4fe3e46ff4267451d49b30143e6
x86/nmi: Corrections and improvements to do_nmi_stats()

The hardware domain doesn't necessarily have the domid 0.  Render v instead,
adjusting the strings to avoid printing trailing whitespace.

Rename i to cpu, and use separate booleans for pending/masked.  Drop the
unnecessary domain local variable.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/nmi.c